From: Wei Liu Date: Thu, 6 Feb 2020 12:10:24 +0000 (+0000) Subject: x86: make it clear range is inclusive when printing e820 range X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~731 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=1f68bfb3816e8c82a6449d4505bdc4e7143cd9d7;p=xen.git x86: make it clear range is inclusive when printing e820 range Change the format string to use "[,]" and subtract 1 from the end. Signed-off-by: Wei Liu Acked-by: Jan Beulich --- diff --git a/xen/arch/x86/e820.c b/xen/arch/x86/e820.c index 160f029edd..c9dc52c768 100644 --- a/xen/arch/x86/e820.c +++ b/xen/arch/x86/e820.c @@ -92,9 +92,9 @@ static void __init print_e820_memory_map(struct e820entry *map, unsigned int ent unsigned int i; for (i = 0; i < entries; i++) { - printk(" %016Lx - %016Lx ", + printk(" [%016Lx, %016Lx] ", (unsigned long long)(map[i].addr), - (unsigned long long)(map[i].addr + map[i].size)); + (unsigned long long)(map[i].addr + map[i].size) - 1); switch (map[i].type) { case E820_RAM: printk("(usable)\n");